package com.rwcw.admin.restful;

import com.rwcw.admin.config.token.FrontTokenComponent;
import com.rwcw.admin.vo.ResultVO;
import com.rwcw.admin.vo.TokenUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试Controller
 */
@RestController
@RequestMapping("/admin")
public class TestController {


    /**
     * 测试接口是否联通
     */
    @GetMapping("/test")
    public ResultVO<?> test() {
        return new ResultVO<>(0, "success");
    }

    /**
     * 测试token拦截
     */
    @GetMapping("/test1")
    public ResultVO<?> test1() {
        return new ResultVO<>(0, "success");
    }



}
